
/*
    第一阶段模块一作业2 
*/

import java.util.Scanner;

public class PrintMenu {
    public static void main(String[] args) {
        
        while (true) {
            System.out.println("请输入1-5的数字:");
            Scanner sc = new Scanner(System.in);
            int option = sc.nextInt();

            switch (option) {
                case 1:
                System.out.println("新建");
                break;
                case 2:
                System.out.println("打开文件");
                break;
                case 3:
                System.out.println("保存");
                break;
                case 4:
                System.out.println("刷新");
                break;
                case 5:
                System.exit(0);
                break;
                default:
                System.out.println("请输入正确的数字");
                break;
            }
        }
        
    }
}